﻿
@{
    Layout = null;
}
<input type="hidden" value="@ViewBag.IsSellerAdmin" id="VIseller" />
<div style="width: 100%; height: 30px;"></div>
<div class="top">
    <div class="warp cl">
        @*<span class="top-link">您好，欢迎来到@(ViewBag.SiteName)！ <a href="/">去@(ViewBag.SiteName)首页</a></span>*@
        <ul class="quick_list">
            <li><a href="/userCenter">@Model.UserName</a> &nbsp; <a href="javascript:logout()">[退出]</a></li>
            @*<li class="sitemap dropdown">
        <span class="outline"></span>
        <span class="blank-white"></span>
        @if (Model.UserName.IndexOf(":") <= 0)
        {
            <a href="/userCenter">我的@(ViewBag.SiteName)</a>
            <b></b>

            <div class="dropdown-menu" style="left:5px!important;">
                <ol>
                    <li><a href="/UserOrder">已买到的商品</a></li>
                    <li><a href="/productConcern">我关注的商品</a></li>
                    <li><a href="/shopConcern">我关注的店铺</a></li>
                </ol>
            </div>
        }
        else
        {
            <a href="/sellerAdmin">我的@(ViewBag.SiteName)</a>
        }
    </li>
    <li><s></s><a href="/cart/cart?returnUrl=@HttpUtility.UrlEncode(Request.RawUrl)" target="_blank">购物车<em>(<span id="shopping-amount"></span>)</em></a></li>*@
            <li class="service dropdown">
                <s></s>
                <span class="outline"></span>
                <span class="blank-white"></span>
                <a href="/SellerAdmin">卖家中心</a>
                <b></b>
                <div class="dropdown-menu">
                    <ol>
                        @*<li><a href="/SellerAdmin">商家入驻</a></li>*@
                        <li><a href="/SellerAdmin/order/management">已卖出商品</a></li>
                        <li><a href="/SellerAdmin/product/create">发布商品</a></li>
                        <li><a href="/SellerAdmin/product/management">管理商品</a></li>

                    </ol>
                </div>
            </li>
            @*<li class="service dropdown">
                <s></s>
                <span class="outline"></span>
                <span class="blank-white"></span>
                <a href="javascript:void(0)">客户中心</a>
                <b></b>
                <div class="dropdown-menu" style="left:5px!important;width:73px;">
                    <ol>
                        <li><a href="/Article/Category">帮助中心</a></li>
                        @if (Model.UserName.IndexOf(":") <= 0)
                        {
                            <li><a href="/UserCenter?url=/OrderRefund&tar=OrderRefund">售后服务</a></li>
                            <li><a href="/UserCenter?url=/OrderComplaint&tar=OrderComplaint">投诉中心</a></li>
                        }
                    </ol>
                </div>
            </li>*@
        </ul>

    </div>
</div>
<div class="navbar selleradmin  navbar-static-top navbar-custom">
    @{var area = (string)ViewContext.RouteData.DataTokens["area"];}
    <div class="seller-l">
        <div class="navbar-header">
            <a href="/SellerAdmin" title="">
                <img src="/images/head-logo.png" width="180" height="45" style="margin-top:5px;" />
            </a>
        </div>
        <div class="collapse navbar-collapse">
            <ul class="nav navbar-nav navbar-left">
                <div class="block" style="width:68px!important"></div>
                @*<li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" onclick="window.location.href = '/selleradmin/Home/Console';">首页</a>
                    <ul class="dropdown-menu">
                        <li>@Html.ActionLink("控制台", "Console", "Home", new { area = "selleradmin" }, new { id = "1001" })</li>
                        <li>@Html.ActionLink("平台公告", "Index", "Article", new { area = "selleradmin" }, new { id = "1002" })</li>
                    </ul>
                </li>*@
                @foreach (var p in Himall.Web.Framework.PrivilegeHelper.SellerAdminPrivileges.Privilege)
                {
                    var fistUrl = "";
                    var fistItem = p.Items.FirstOrDefault();
                    if (p.GroupName == "商品")
                    {
                        fistItem=p.Items.FirstOrDefault(d=>d.PrivilegeId== 2002);
                    }
                    if (fistItem != null)
                    {
                        fistUrl = "/" + area + "/" + fistItem.Url;
                    }
                    <li class="dropdown">
                        <a class="dropdown-toggle" data-toggle="dropdown" onclick="window.location.href = '@fistUrl';">@p.GroupName</a>
                        <ul class="dropdown-menu id_menu">
                            @foreach (var item in p.Items)
                            {
                                if (item.PrivilegeId == 4007 && ViewBag.IsSellerAdmin)
                                {
                                    continue;
                                }
                                if (item.PrivilegeId != 3007)
                                {
                                    <li><a href="/@area/@item.Url" id="@item.PrivilegeId">@item.Name</a></li>
                                }
                                else  //硬编码设置支付方式菜单出现
                                {

                                    if (ViewBag.IsSellerAdmin)
                                    {
                                        <li><a href="/@area/@item.Url" id="@item.PrivilegeId">@item.Name</a></li>
                                    }
                                }
                            }
                        </ul>
                    </li>
                }
            </ul>
        </div>
    </div>
</div>
<div class="aside selleraside">

    <ul class="aside-list" style="height:initial;"></ul>
    @*@if (Model.UserName.IndexOf(":") <= 0)
    {
        <a class="btn-change-link" href="/UserCenter"><i class="glyphicon glyphicon-shopping-cart"></i>我要买</a>
    }*@
</div>
<div class="cover" style="display:@(ViewBag.isPrompt==1?"block":"none");"></div>
@*<div class="dialog-simple" style="display:@(ViewBag.isPrompt==1?"block":"none");">
    <a class="close">×</a>
    <div class="form-horizontal shop-expired">
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-8 form-control-static">
                您的店铺将在<span class="cor-red"> @ViewBag.EndDate </span>日过期，届时所有商品将自动下架，
                且无法登录店铺，请及时续费。
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-5 col-sm-offset-5">
                <a class="btn btn-primary" id="next" href="/SellerAdmin/Shop/Renew" target="iframe"> 去缴费 </a>
            </div>
        </div>
    </div>
</div>*@